package com.sun.eureka.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sun.eureka.api.IOrderService;
import com.sun.eureka.entry.Customer;
import com.sun.eureka.remoter.Order;
import com.sun.eureka.service.ICustomerService;

@Service
public class CustomerServiceImpl implements ICustomerService{
	
	@Autowired
	private IOrderService orderService;

	public Order getOrderByCustomerId(Long id) {
		return orderService.get(id);
	}

	public Customer get(Long id) {
		return new Customer(id,"战三","13090209323","ou@qq.com");
	}

}
